<?php
/*
 * @Author: your name2
 * @Date: 2021-09-21 16:46:35
 * @LastEditTime: 2022-01-24 15:43:10
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /nlog/app/Http/Controllers/AdminController/Login.php
 */

namespace App\Http\Controllers\crm;



use Illuminate\Support\Facades\Request;

class CrmFollowUp extends BaseController
{
    
    public function crmFollowUpAdd(){
        if(Request::has('formData') && Request::has('target_id') && Request::has('tableName')){
          $add_id =  redis_mysql_add_return('crm_follow_up',Request::input('formData'));
          $res =  redis_mysql_edit_return(Request::input('tableName'), ['id'=>Request::input('target_id') ]  , [ 'followUp_id' => $add_id] );
          if($res){
              return $this->create(200,'修改成功');
          }else{
              return $this->create(100,'修改失败');
          }
        }
    }

    public function crmFollowUpEdit(){
        return redis_mysql_edit('crm_follow_up');
    }
    public function crmFollowUpSelOne(){
            return   redis_mysql_selone('crm_follow_up');
    }
   
    // public function linkmanAdd(){
    //     return redis_mysql_add('crm_linkman');
    // }
    
}
